package com.bobo.service.impl;

import com.bobo.base.mybatis.ServiceImpl;
import com.bobo.mapper.SkuMapper;
import com.bobo.pojo.Sku;
import com.bobo.service.SkuService;
import jakarta.annotation.Resource;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;;

@Service
public class SkuServiceImpl extends ServiceImpl<SkuMapper, Sku> implements SkuService {
   @Resource
   private SkuMapper skuMapper;
    @Override
//    @Cacheable(cacheNames = "skuList", key = "#prodId")
    public List<Sku> listByProdId(Long prodId) {
        return skuMapper.listByProdId(prodId);
    }
}
